package bridge;

import bridge.lights.CrystalLight;
import bridge.lights.ILight;
import bridge.lights.IncandescentLight;
import bridge.switchs.BaseSwitch;
import bridge.switchs.RemoteControlSwitch;

public class BridgeClient {

	public static void main(String[] args) {

		ILight incandescentLight = new IncandescentLight();
		ILight crystalLight = new CrystalLight();

		System.out.println("--一般开关");
		BaseSwitch baseSwitch = new BaseSwitch(incandescentLight);
		baseSwitch.makeLight();
		System.out.println("--一般开关");

		System.out.println("--遥控开关");
		RemoteControlSwitch remoteControlSwitch = new RemoteControlSwitch(crystalLight);
		remoteControlSwitch.makeRemoteLight(3);
		// remoteControlSwitch.makeLight();
		System.out.println("--遥控开关");

	}

}
